home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat2 / standard / getjid.z / getjid
Encoding:
Text File  |  2001-04-17  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttjjjjiiiidddd((((2222))))                                                            ggggeeeettttjjjjiiiidddd((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getjid - get job ID
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
  13.  
  14.      jjjjiiiidddd____tttt ggggeeeettttjjjjiiiidddd((((vvvvooooiiiidddd))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _g_e_t_i_d function returns the job ID associated with the current
  18.      process.
  19.  
  20. EEEERRRRRRRROOOORRRRSSSS
  21.      Under the following conditions, the _gggg_eeee_tttt_jjjj_iiii_dddd function fails returning 0
  22.      with the _e_r_r_n_o set to:
  23.  
  24.      [ENOPKG]       The job limits software is not installed.
  25.  
  26.      [ENOJOB]       The current process isn't in a job but job limits software
  27.                     is installed.
  28.  
  29. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  30.      getjlimit(2), killjob(2), makenewjob(2), setjusage(2).
  31.  
  32. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  33.      Upon successful completion, _g_e_t_j_i_d returns a job ID.  If an error occurs,
  34.      a value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.  The
  35.      _g_e_t_j_i_d returns a 0 with eeeerrrrrrrrnnnnoooo set in two cases: if job limits software is
  36.      not installed or job limits software is installed but the current process
  37.      is not in a job.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.